atspiroot: Implement GetIndexInParent
authorMatthias Clasen <mclasen@redhat.com>
Sat, 10 Oct 2020 00:25:38 +0000 (20:25 -0400)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 12 Oct 2020 15:19:32 +0000 (16:19 +0100)
Just for good measure

gtk/a11y/gtkatspiroot.c

index 98ba152267bcffc9934444cab8daff00fa6d0ec9..4027f1d9f1e8ac2a0b865544f01a7ddaa8925fe3 100644 (file)
@@ -251,7 +251,7 @@ handle_accessible_method (GDBusConnection       *connection,
       g_variant_builder_close (&builder);
 
       g_dbus_method_invocation_return_value (invocation, g_variant_builder_end (&builder));
-    }
+     }
   else if (g_strcmp0 (method_name, "GetAttributes") == 0)
     {
       GVariantBuilder builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("(a{ss})"));
@@ -325,6 +325,10 @@ handle_accessible_method (GDBusConnection       *connection,
 
       g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a(so))", &builder));
     }
+  else if (g_strcmp0 (method_name, "GetIndexInParent") == 0)
+    {
+      g_dbus_method_invocation_return_value (invocation, g_variant_new ("(i)", -1));
+    }
 }
 
 static GVariant *